<%--
 *  File:    LevelHistory.jsp
 *  @Author: TendyHu 
 *  Date:    2010/10/14
 *  @Modifier: Jamesli 
 *  Date:    2011/01/09
 *
 *  Copyright (C) 2000 - 2011 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>



<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java"%>
<%@ page import="java.util.*"%>
<%@ page import="org.apache.log4j.Category"%>

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval"%>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom"%>

<% //--------------------------------------  setting logger --%>
<%
  	Category cat = Category.getInstance("jsp.LevelHistory");  
%>

<% //--------------------------------------  variant and initialization --%>
<%
	String strModuleName = "COM";
  	String strTableName = "v_levelhistory";
  	String contextPath = request.getContextPath();
%>
<% //--------------------------------------  include files list --%>
<%@ include file="/inc/PageDefault.inc"%>
<%@ include file="/inc/LocationDefault.inc"%>


<html>
<head>
<title>LevelHistory</title>
<PageFlow:CheckPageFlow pageName="p_levelhistory" />
<%@ include file="/inc/InitEdit.inc"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet"
	href="<%=contextPath%>/css/<%= strLanguageCode %>/main.css"
	type="text/css">
<script language="JavaScript"
	src="<%=contextPath%>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath%>/js/ScriptLib.js"></script>
<%@ include file="/inc/SummaryDivision.inc"%>

<% //--------------------------------------  output variant from pageflow --%>
<%
  	Vector totalsummary = (Vector)pageContext.getAttribute("totalsummary");
  	if(totalsummary == null) totalsummary = new Vector();
%>
<script>

function page_summary(actionvalue,orderbyname)
{
  var editform = summaryPrepare(cform,actionvalue,orderbyname);
  editform.action = "LevelHistory?<%= OvalTools.randomURL() %>";
  editform.target = "_self";
  isRunning = true;
  editform.submit();  
}

function page_cancel()
{
    window.close();
}
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<% //--------------------------------------  hidden form variant --%>
<form name="cform" method="post" action="<%=contextPath%>/Dispatcher" target="_parent">
<input type="hidden" name="pagename" value="p_levelhistory">
<input type="hidden" name="actionname">
	<% //--------------------------------------  page location --%>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
	<tr>
		<td valign="top">
		<table width="100%" border="0" cellspacing="0">
			<tr>
				<td class="summary_top"></td>
			</tr>
		</table>

		<table border="1" cellspacing="0" bordercolorlight="#999999"
			bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="0">

			<% //--------------------------------------  summary header --%>
			<tr bgcolor="#ACBCCA" class="deepblue-left">
				<td width="16%" class="title_center">
					<a href="javascript:page_summary('orderby','source')"><%= label.getLabelName("L_Source") %></a>
				</td>
				<td width="10%" class="title_center">
					<a href="javascript:page_summary('orderby','createdate')"><%= label.getLabelName("L_CreateDate") %></a>
				</td>
				<td width="14%" class="title_center">
					<a href="javascript:page_summary('orderby','orignalvalue')"><%= label.getLabelName("L_OrignalValue") %></a>
				</td>
				<td width="15%" class="title_center">
					<a href="javascript:page_summary('orderby','newvalue')"><%= label.getLabelName("L_NewValue") %></a>
				</td>
				<td class="title_center">
					<a href="javascript:page_summary('orderby','createusername')"><%= label.getLabelName("L_CreateUserName") %></a>
				</td>
				<td class="title_center">
					<a href="javascript:page_summary('orderby','confirmusername')"><%= label.getLabelName("L_ConfirmUserName") %></a>
				</td>
				<td class="title_center">
					<a href="javascript:page_summary('orderby','confirmdate')"><%= label.getLabelName("L_ConfirmDate") %></a>
				</td>
			</tr>

			<% //--------------------------------------  default value definition --%>
			<%
        	int i = 0;
            String strClassType = new String();   
            Integer nDefaultUserId = new Integer(-1);            
            boolean bHasChecked = false;             
      	%>

			<% //--------------------------------------  loop results --%>
			<logic:iterate id="onerow" collection="<%= totalsummary %>">
		<%
            if(i%2 == 1)
            {
              	strClassType = "td-listrom";
            }else{                    
              	strClassType = "";
            }           
            i++;                         
          %>

				<tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'" class="<%=JspHelper.filterNull( strClassType )%>">
					<td width="16%"><custom:write property="source" name="onerow" dictType="LevelDataSource" nbsp="true"/></td>
					<td width="16%"><custom:write property="createdate" name="onerow" nbsp="true"/></td>
					<td width="10%"><custom:write property="orignalvaluename" name="onerow" nbsp="true"/></td>
					<td width="14%"><custom:write property="newvaluename" name="onerow" nbsp="true"/></td>
					<td><custom:write property="createusername" name="onerow" nbsp="true"/></td>
					<td width="15%"><custom:write property="confirmusername" name="onerow" nbsp="true"/></td>
					<td width="15%"><custom:write property="confirmdate" name="onerow" nbsp="true"/></td>
				</tr>
			</logic:iterate>
			<% //--------------------------------------  default value --%>
			<% //--------------------------------------  flipping page --%>
			<%@ include file="/inc/SummaryAction.inc"%>
		</table>
		<% //--------------------------------------  page operation button --%>
      		<table width="100%" cellspacing="0" cellpadding="0">
        	<tr> 
          		<td class="summary_top"></td>
        	</tr>
        	<tr> 
          		<td class="td_center">
            		<a onclick="javascript:window.close()"><custom:button type="1" label="L_Close" imgsrc="new.gif" border="0" style="width:60"/></a>
          		</td>
        	</tr>
      		</table>
		</td>
	</tr>
</table>
</form>
</body>
</html>


